<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

<div id="header">
	<div id="logo"></div>
	<div id="menu">
	<c:if test="${not empty menu}">
		<ul id="menu">
			<c:forEach items="${menu}" var="menuItem">
				<c:choose>
					<c:when test="${menuItem.current}">
						<li id="current">${menuItem.name}</li>
					</c:when>
					<c:otherwise>
						<c:choose>
							<c:when test="${menuItem.special}">
								<li id="special"><a href="${pageContext.request.contextPath}/j_spring_security_logout">${menuItem.name}</a></li>
							</c:when>
							<c:otherwise>
								<li><a href="${pageContext.request.contextPath}/${menuItem.link}">${menuItem.name}</a></li>
							</c:otherwise>
						</c:choose>
					</c:otherwise>
				</c:choose>
			</c:forEach>
		</ul>
	</c:if>
	</div>
</div>

<c:if test="${not empty message}">
	<div id="message">${message}</div>
</c:if>

<c:if test="${not empty error}">
	<div id="error">${error}</div>
</c:if>